<?php

$PREFIX = get('url.prefix');

header('Content-Type: application/atom+xml; charset="utf-8"');

echo '<?xml version="1.0" encoding="utf-8"?>'."\n";

?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>LightFeed</title>
  <link href="http://octofeed/feeds"/>
  <updated>2008-06-19T00:00:00-00:00</updated>
  <author>
    <name>Your Name Here</name>
  </author>
  <id><?php echo $PREFIX; ?>/feeds</id>
<?php

foreach($this->feeds as $feed)
{
?>
  <entry>
    <title><?php echo utf8_encode($feed->title); ?></title>
    <link href="<?php echo $PREFIX; ?>/feeds/<?php echo $feed->name; ?>"/>
    <id><?php echo $PREFIX; ?>/feeds/<?php echo $feed->name; ?></id>
    <updated><?php echo date('c',strtotime($feed->updated)); ?></updated>
    <summary><?php echo utf8_encode($feed->description); ?></summary>
  </entry>
<?php
}
?>
</feed>
